package com.stars.module.menu.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.stars.module.menu.entity.StarMenu;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @author : Rocks
 * @version : 1.0
 * @date : 2022/11/8 23:48
 * @description : 菜单操作数据库映射
 */
@Mapper
public interface StarMenuMapper extends BaseMapper<StarMenu> {

    @Select("SELECT MAX(SHOWORDER) FROM STAR_MENU WHERE FID = #{fid}")
    int getMaxIndex(String fid);

}
